#include <iostream>
using namespace std;

// 交换两个整数
void swap(int& a, int& b) {
    cin >> a >> b;
    int temp = a;
    a = b;
    b = temp;
}

// 交换两个浮点数
void swap(double& a, double& b) {
    cin >> a>> b;
    double temp = a;
    a = b;
    b = temp;
}

// 交换两个长整数
void swap(long long& a, long long& b) {
    cin >> a>> b;
    long long temp = a;
    a = b;
    b = temp;
}
int main() {
    cout << "Enter two integers:";
    int a, b;
    swap(a, b);
    cout << "After swapping integers: a = " <<a<< ", b = " << b << endl;
    cout << "Enter two doubles:";
    double c ,d;
    swap(c, d);
    cout << "After swapping doubles: c = " << c << ", d = " << d << endl;
    cout << "Enter two long longs:";
    long long e, f;
    swap(e, f);
    cout << "After swapping long longs: e = " << e << ", f = " << f << endl;
    system("pause");
    return 0;
}